# coding: utf-8
from sqlalchemy import Column, DateTime, String,Integer
from sqlalchemy.dialects.mysql import BIGINT
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()
metadata = Base.metadata


class HnUser(Base):
    __tablename__ = 'hn_users'

    id = Column(BIGINT(20), primary_key=True, comment='自增主键')
    account = Column(String(100), comment='账号')
    password = Column(String(100), comment='密码')
    status = Column(Integer, nullable=False, comment='状态')
    remember_token = Column(String(100), comment='token')
    create_at = Column(DateTime, comment='创建时间')
